package com.epfresh.constant;

import android.os.Build;

/**
 * Created by wzh on 2016/4/26.
 */
public class Constant {


    public static boolean DEV = true;
    public static String USER_INFO_FILE_KEY = "user_info_file_key";
    public static String STORE_INFO_FILE_KEY = "store_info_file_key";
    public static String USER_STR = "user_str";
    public static String STORE_INFO_STR = "store_info_str";
    public static String KEY_PICK_UP_ADDRESS = "key_pick_up_address";
    public static String KEY_STORE_DETAIL_IMAGE_ADDRESS = "key_store_detail_image_address";

    public static String TAG_HOME_FRAGMENT = "tag_home_fragment";
    public static String TAG_ORDER_FRAGMENT = "tag_order_fragment";
    public static String TAG_MINE_FRAGMENT = "tag_mine_fragment";
    public static String KEY_HOME_STATE_INDEX = "key_home_state_index";
    public static String TAG_SOLD_OUT_FRAGMENT = "tag_sold_out_fragment";
    public static String TAG_SOLD_IN_FRAGMENT = "tag_sold_in_fragment";
    //跳转web页面的url
    public static String KEY_WEB_URL = "key_web_url";
    //跳转web页面的title
    public static String KEY_WEB_TITLE = "key_web_title";
    public static String KEY_PRICE_LIST = "key_price_list";
    //    //店铺状态key
    public static String KEY_STORE_TYPE_STATUS = "key_store_type_status";
    public static int TYPE_STORE_STATUS_FIRST_OPEN = 0x1;
    public static int TYPE_STORE_STATUS_PRVIEW = 0x2;
    public static int TYPE_STORE_STATUS_PRVIEW_EDIT = 0x4;
    public static int TYPE_STORE_STATUS_EDIT = 0x3;
//    //审核中
//    public static int TYPE_STORE_STATUS_AUDITING= 0x4;
//    //审核未通过
//    public static int TYPE_STORE_STATUS_REJECTED= 0x5;
//    //未认证
//    public static int TYPE_STORE_STATUS_UNCERTIFIED= 0x6;
//    //已认证
//    public static int TYPE_STORE_STATUS_HAS_CERTIFIED= 0x7;
//
//

    public static String KEY_TYPE_STORE_STATUS = "key_type_store_status";
    public static String KEY_TYPE_CER_STATUS = "key_type_cer_status";

    //未认证（0），已经提交（1），已认证（2），认证失败（3）
    public static String CER_STATUS_UNCERTIFIED = "0";
    public static String CER_STATUS_CERTIFING = "1";
    public static String CER_STATUS_HAS_CERTIFIED = "2";
    public static String CER_STATUS_REJECTED = "3";

    //审核中0，审核通过1，审核不通过2
    public static String STORE_STATUS_UNAUDITING = "3";
    public static String STORE_STATUS_AUDITING = "0";
    public static String STORE_STATUS_PASSED = "1";
    public static String STORE_STATUS_REGECTED = "2";


    public static final String MOBILE = "mobile";// 手机号码
    public static final String PASSWORD = "password";// 密码
    public static final String USERINFO = "userinfo";// 用户信息

    public static boolean isStatusBar = false;
    public static boolean isDEV = true;
    public static String URL_BASE = "http://api.epfresh.com/cgi";
    public static String URL_BASE_TEST = "http://10.10.47.1/cgi";
    //public static String URL_DOC = "http://api.epfresh.com/systemRestController/downloadDoc";
    //    供应商APP:  http://m.epfresh.com/common/download.html?type=supplier
//    采购商APP:  http://m.epfresh.com/common/download.html?type=purchaser
    //public static String URL_SHARE_DOWNLOAD = "http://m.epfresh.com/common/download.html?type=supplier";
    //    (a) create-store.html,(a)店铺认证页面（编辑、审核中、认证成功后）右上角添加帮助入口
    //    (b) add-bankcard.html,(b)银行信息（编辑、认证成功）右上角添加帮助入口
    //    (c) certify.html,(c)个人认证页面（编辑页面）右上角添加帮助入口
    //    (d) order.html,(d)订单页面（订单详情）右上角添加帮助入口
    //    (e) product.html,(e)商品页面（商品添加、价格编辑页）右上角添加帮助入口
    public static String URL_HELP = "http://m.epfresh.com/help/";

    public static String URL_HELP_AGREEMENT = URL_HELP+"pur-agreement.html";//公共api已写，此处冗余，暂记
    public static String URL_HELP_QUESTION = URL_HELP+"pur-faq.html";
    public static String URL_HELP_BEBUY = URL_HELP+"pur-behalfbuy.html";
    public static String URL_HELP_WALLET = URL_HELP+"wallet-desc.html";
    public static String URL_HELP_COUPON = URL_HELP+"coupon-desc.html";
    public static String URL_HELP_REDUCTION = "http://m.epfresh.com/help/reduction.html";


    //当前只是用于订单类别
    public static String TYPE = "type";
    public static int TYPE_BANK_ADD = 0x1111;
    public static int TYPE_BANK_VIEW = 0x22222;
    //自提
    public static String SELF_DELIVERY = "selfDelivery";

    //递送
    public static String EXPRESS_DELIVERY = "ExpressDelivery";
    //预先支付
    public static String ON_LINE_PAYMENT = "onlinePayment";
    //货到付款
    public static String CASH_ON_DELIVERY = "cashOnDelivery";

    static {
        if (Build.VERSION.SDK_INT >= 19) {
            isStatusBar = false;
        }
        if (isDEV) {
            URL_BASE = URL_BASE_TEST;
            URL_BASE = "http://10.10.47.1/cgi";
            URL_BASE_TEST = "http://10.10.47.1/cgi";
            //URL_SHARE_DOWNLOAD = "http://10.10.47.4/m.epfresh.com/download.html?type=supplier";
            //URL_DOC = "http://10.10.47.4/systemRestController/downloadDoc";

        }

    }
}
